package com.xjy.rpc.config;
/**
 * @description: 定义的一些常量
 * @author XJY
 * @date 2024/10/18 9:15
 * @version 1.0
 */
public class Constant {

    //注册服务时在注解ServerRegister 自定义的服务过期时间
    public static final String EXPIRE_TIME = "expireTime";

    public static final String TIME_UNIT = "timeUnit";

    public static final String SERVICE_COUNT = "serviceTime";

    //redis服务注册目录前缀
    public static final String REDIS_PROVIDER_PRE = "rpcProvider:";




    //message相关
    public static final short MESSAGE_MAGIC = 0x11;
    public static final short MESSAGE_TYPE_REQ = 0x01;

    public static final short MESSAGE_TYPE_RES = 0x02;
}
